package rollercoaster.railway.tests;

import java.util.ArrayList;
import java.util.Iterator;

import rollercoaster.commons.Vertex3D;
import rollercoaster.railway.utils.OBJFileVertexReader;

public class OBJFileVertexReaderTest {

	public static void main(String[] args) {
		OBJFileVertexReader reader = new OBJFileVertexReader("untitled.obj");
		ArrayList<Vertex3D> list = (ArrayList<Vertex3D>) reader.getVertices();
		
		for (Iterator iterator = list.iterator(); iterator.hasNext();) {
			Vertex3D vertex3d = (Vertex3D) iterator.next();
			System.out.println(vertex3d.getX() + " " + vertex3d.getY() + " " + vertex3d.getZ());
		}
	}
}
